//
//  MyStockForceTraceController.h
//  Stock
//
//  Created by blacksun on 11-7-1.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StockListController.h"
#import "MyStockService.h"
#import "MyStockForceTrace.h"
#import "DownloadImageService.h"
#import "StockImageTime.h"

#define kDailyImageButtonTag        1234
#define kWeeklyImageButtonTag       1235
#define kMonthlyImageButtonTag      1236


#define kImageTypeKey             @"type"
#define kImageTagKey              @"tag"

//#define kDailyImageTypeKey        @"fftd"
//#define kWeeklyImageTypeKey       @"fftw"
//#define kMonthlyImageTypeKey      @"fftm"

#define kUpdateLastedImage        @"updateLastedImage"

@interface MyStockForceTraceController : UIViewController<ServiceDelegate> {
    StockListController *parentController;
    MyStockService *myStockService;
    DownloadImageService *downloadImageService;
    MyStockForceTrace *forceTrace;
    MyStock *myStock;
    NSMutableDictionary *stockImageTimes;
    UILabel *label1;
    UILabel *label2;
    UILabel *label3;
    UILabel *label4;
    UILabel *label5;
    UILabel *label6;
    UILabel *label7;
    UILabel *label8;
    UILabel *label9;
    UIImageView *imageView;
    UIImageView *selectedImage;
    NSString *updateTime;
    int currentButtonTag;
    UILabel *pubDateLabel;
    NSMutableArray *childViewControllers;
    int lastButtontTag;
    CGRect chartFrame;
}
@property(nonatomic, retain) NSMutableDictionary *stockImageTimes;
@property(nonatomic, assign) StockListController *parentController;
@property(nonatomic, retain) MyStockService *myStockService;
@property(nonatomic, retain) MyStockForceTrace *forceTrace;
@property(nonatomic, retain) DownloadImageService *downloadImageService;
@property(nonatomic, retain) MyStock *myStock;
@property(nonatomic, retain) IBOutlet UILabel *label1;
@property(nonatomic, retain) IBOutlet UILabel *label2;
@property(nonatomic, retain) IBOutlet UILabel *label3;
@property(nonatomic, retain) IBOutlet UILabel *label4;
@property(nonatomic, retain) IBOutlet UILabel *label5;
@property(nonatomic, retain) IBOutlet UILabel *label6;
@property(nonatomic, retain) IBOutlet UILabel *label7;
@property(nonatomic, retain) IBOutlet UILabel *label8;
@property(nonatomic, retain) IBOutlet UILabel *label9;
@property(nonatomic, retain) IBOutlet UIImageView *imageView;
@property(nonatomic, retain) IBOutlet UIImageView *selectedImage;
@property(nonatomic, retain) NSString *updateTime;
@property(nonatomic, retain) IBOutlet UILabel *pubDateLabel;
@property(nonatomic, retain) NSMutableArray *childViewControllers;
-(void)setupSelf;
-(IBAction)buttonClickedAction:(id)sender;

-(void)reloadViews;

@end
